/*
 * MainGui.java
 *
 * Created on 17 de septiembre de 2008, 23:47
 */

package gui;

/**
 *
 * @author  demian
 */
public class MainGui extends javax.swing.JFrame {
    private PanelGeneral panelGeneral;

    /** Creates new form MainGui */
    public MainGui() {
        super("Diccionario sinonimos - TP Final TSB 2005");
        panelGeneral = new PanelGeneral();
        addWindowListener(panelGeneral);
        getContentPane().add(panelGeneral);
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);        
        pack();
        
        //como carajo se puede evitar esto para directamente preguntarle al panel cual es su frame?
        //this.panelGeneral.setParentFrame(this);
        //respuesta: usar JOptionPane.createDialog(Component, String);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        pack();
    }// </editor-fold>//GEN-END:initComponents
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                MainGui mainGui = new MainGui();
                mainGui.setVisible(true);
                GuiUtils.centrarEnPantalla(mainGui);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
